﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SuperSocket.SocketBase;
using SuperSocket.SocketBase.Config;
using SuperSocket.SocketBase.Protocol;
using server;

namespace SuperSocket.QuickStart.TelnetServer_AppServer
{
    public class TelnetServer : AppServer<TelnetSession>
    {
        Dictionary<string, Maticsoft.Model.Skill> skills = new Dictionary<string, Maticsoft.Model.Skill>();

        public Dictionary<string, Maticsoft.Model.Skill> Skills
        {
            get { return skills; }
            set { skills = value; }
        }

        Dictionary<string, baseskill> baseskills = new Dictionary<string, baseskill>();

        internal Dictionary<string, baseskill> Baseskills
        {
            get { return baseskills; }
            set { baseskills = value; }
        }

        protected override bool Setup(IRootConfig rootConfig, IServerConfig config)
        {
            return base.Setup(rootConfig, config);
        }

        protected override void OnStartup()
        {
            startCombatServer();
            base.OnStartup();
        }

        protected override void OnStopped()
        {
            base.OnStopped();
        }
        public TelnetServer()
            : base(new CommandLineReceiveFilterFactory(Encoding.UTF8, new BasicRequestInfoParser(":", "&")))
        {
        }

        combat mAllcombat;

        internal combat MAllcombat
        {
            get { return mAllcombat; }
            set { mAllcombat = value; }
        }

        void startCombatServer()
        {
            mAllcombat = new combat();

        }

    }
}
